<template>
  <router-view v-slot="{ Component }">
    <transition>
      <keep-alive>
        <component v-if="$route.meta.keepAlive" :is="Component" />
      </keep-alive>
    </transition>
    <transition>
      <component v-if="!$route.meta.keepAlive" :is="Component" />
    </transition>
  </router-view>
</template>

<script>

export default {
  name: 'App'
}
</script>

<style lang="less">
:root{
  --van-picker-confirm-action-color: @primary-color!important;
}
body{
  margin: 0;
  font-size: 16px;
  background: #f9f9f9;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  max-width: 750px;
  margin: 0 auto;
}
</style>
